package cn.gson.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the "PLAN" database table.
 * 
 */
@Entity
@Table(name="PLAN")
@NamedQuery(name="Plan.findAll", query="SELECT p FROM Plan p")
public class Plan implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="PLAN_PLANID_GENERATOR", sequenceName="SEQ_35")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="PLAN_PLANID_GENERATOR")
	@Column(name="PLAN_ID")
	private long planId;

	@Column(name="CUSTOMER_ID")
	private BigDecimal customerId;

	@Column(name="CUSTOMER_NAME")
	private String customerName;

	@Column(name="PLAN_CONTENT")
	private String planContent;

	@Column(name="PLAN_FEEDBACK")
	private String planFeedback;

	@Temporal(TemporalType.DATE)
	@Column(name="PLAN_SUBMIT_DATE")
	private Date planSubmitDate;

	@Column(name="PLAN_THEME")
	private String planTheme;

	//bi-directional many-to-one association to Opportunity
	@ManyToOne
	@JoinColumn(name="OPPORTUNITY_ID")
	private Opportunity opportunity;

	public Plan() {
	}

	public long getPlanId() {
		return this.planId;
	}

	public void setPlanId(long planId) {
		this.planId = planId;
	}

	public BigDecimal getCustomerId() {
		return this.customerId;
	}

	public void setCustomerId(BigDecimal customerId) {
		this.customerId = customerId;
	}

	public String getCustomerName() {
		return this.customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public String getPlanContent() {
		return this.planContent;
	}

	public void setPlanContent(String planContent) {
		this.planContent = planContent;
	}

	public String getPlanFeedback() {
		return this.planFeedback;
	}

	public void setPlanFeedback(String planFeedback) {
		this.planFeedback = planFeedback;
	}

	public Date getPlanSubmitDate() {
		return this.planSubmitDate;
	}

	public void setPlanSubmitDate(Date planSubmitDate) {
		this.planSubmitDate = planSubmitDate;
	}

	public String getPlanTheme() {
		return this.planTheme;
	}

	public void setPlanTheme(String planTheme) {
		this.planTheme = planTheme;
	}

	public Opportunity getOpportunity() {
		return this.opportunity;
	}

	public void setOpportunity(Opportunity opportunity) {
		this.opportunity = opportunity;
	}

}